import { http } from "../http";

// 注：getSecond 必须是 函数
export const getSecond = () => http.get("/test/second");

// 注：params 必须是 {name: 'xxx', age: 数字}
export const getThird = (params) => http.get("/test/third", { params });

export const getFourth = (data) =>
  http.post("/test/fourth", data, {
    headers: { "Content-Type": "application/x-www-form-urlencoded" },
  });
